package com.chen.controller;

import com.chen.common.Result;
import com.chen.service.Impl.DictServiceImpl;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chen

 */
@RestController
@RequestMapping("/dict")
@Api(value = "DictController",tags = "数据字典")
public class DictController {


    @Autowired
    private DictServiceImpl dictService;

    @GetMapping("/findAll")
    public Result findAll() {

        return Result.success(dictService.getDict());
    }
}
